function CreateFrequencySelect(freq){
	var $select = $('<select></select>').attr('id', 'frequency');
	$.each(frequencies, function(val, name){
		var $option = $('<option></option>').html(name).attr('value', val);
		if(val == freq){
			$option.attr('selected', 'selected');
		}
		$option.appendTo($select);
	});
	return $select;
}

var frequencies = {
	365: 'Anually',
	183: 'Semi-Anually',
	91: 'Quarterly',
	30: 'Monthly',
	14: 'Fortnightly',
	7: 'Weekly',
	1: 'Daily'
};
